/*
 * @Description:
 * @Author: dh
 * @Date: 2021-12-13 20:39:43
 * @LastEditors: dh
 * @LastEditTime: 2021-12-15 13:34:30
 */
import request from "@/utils/request";

export default {
	// 登录
	login(data) {
		return request({
			url: "/login",
			method: "post",
			data,
		});
	},
	// 获取用户信息
	getUserInfo() {
		return request({
			url: "/user",
			method: "get",
		});
	},
	// 获取用户信息
	getMenuList() {
		return request.get("/menu");
	},
};
